package org.darcy.framework.model;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="分页查询参数")
@Getter
@Setter
public class PageParam<T> implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "实体类")
	private T entity;

	@Schema(description = "分页参数")
	private Query query;

	@Schema(description = "总记录数 ")
	protected int total;

	@Schema(description = "总页数")
	protected int totalPage;

}
